import akshare as ak
# 获取上证指数历史数据
df = ak.stock_zh_index_daily(symbol="sh000001")
print(df.head())

'''

import datrie
# 创建支持小写字母的Trie
trie = datrie.Trie(ranges=[('a','z')]) 
# 添加数据
words = ['apple','app','banana']
for word in words:
    trie[word] = True
# 前缀匹配
print(list(trie.iter_prefix('app')))  # 输出['app','apple']:ml-citation{ref="1,3" data="citationList"}

print("KKKK")
'''